/**
 * 获取dom的style属性
 *
 * */

const getStyleByEl = (el) => {
    if (window.getComputedStyle) {
        return window.getComputedStyle(el, null);
    } else {
        return el.currentStyle;
    }
}
export {
    getStyleByEl
}
